package com.jd.goods.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jd.goods.mapper.GoodsSpecificationMapper;
import com.jd.goods.pojo.GoodsSpecification;
import com.jd.goods.service.GoodsSpecificationService;

@Service("goodsSpecificationService")
public class GoodsSpecificationServiceImpl implements GoodsSpecificationService {
	@Autowired
	private GoodsSpecificationMapper goodsSpecificationMapper;
	@Override
	public GoodsSpecification getGoodsSpecificationByGoodsId(
			Long goodsId) {
		return goodsSpecificationMapper.getByGoodsId(goodsId);
	}

	@Override
	public int addGoodsSpecification(GoodsSpecification goodsSpecification) {
		return goodsSpecificationMapper.add(goodsSpecification);
	}

}
